package com.dushiguang.findhoney.Utils.AnalysisJson;

import com.dushiguang.findhoney.Utils.Http.ApiInit;

/**
 * 使用fastjson解析Json
 * Created by ex-dushiguang201 on 2015-11-19.
 */
public class AnalysisJson {

    /**
     * 将Json字符串解析成Bean
     * @param jsonStr
     * @param entityClass
     * @param <T>
     * @return
     */
    public static <T> T getEntity(String jsonStr, Class<T> entityClass) {
        T entity = null;
        entity = JsonUtil.parseObject(jsonStr, entityClass);
        return entity;
    }
}
